package com.o2o.utils;

/**
 * package_name:com.o2o.utils
 * Author:徐亚远
 * Date:2019/12/6 18:37
 * 项目名:o2o
 * Desription:
 **/
public class PageCalculator {
    public static int calculateRowIndex(int pageIndex,int pageSize){
        return (pageIndex > 0) ? (pageIndex - 1)*pageSize:0;
    }
}
